﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NhaCungCapList.aspx.cs" Inherits="WebApplication.Admin.NhaCungCapList"  MasterPageFile="~/Admin/Web.Master"%>
<asp:Content ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="maint" runat="server">
    <div style="float:right">
 <asp:LinkButton runat="server" ID="lbtnthemmoi" CssClass="btn btn-info" onclick="lbtnthemmoi_Click" 
               >Thêm mới</asp:LinkButton>
</div><br />
<div style="margin-top:25px">
<asp:GridView ID="GrNhacc" runat="server" 
        CssClass="table table-striped table-bordered table-hover" 
        AutoGenerateColumns="False" onrowcommand="GrNhacc_RowCommand" 
        onrowdatabound="GrNhacc_RowDataBound" AllowPaging="True" OnSelectedIndexChanging="GrNhacc_SelectedIndexChanging">
    <Columns>
       <asp:TemplateField HeaderText="STT">
    <ItemTemplate>
    <%# Container.DataItemIndex+1 %>
    </ItemTemplate>
    </asp:TemplateField>
        <asp:BoundField ApplyFormatInEditMode="True" DataField="MANCC" 
            HeaderText="Mã nhà CC" />
        <asp:BoundField DataField="TENNCC" HeaderText="Tên nhà CC" />
        <asp:TemplateField HeaderText="Khu vực">
         <ItemTemplate>
          <asp:Label ID="lbkhuvuc" runat="server"></asp:Label>
         </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="DIACHI" HeaderText="Địa chỉ" />
        <asp:BoundField DataField="MASOTHUE" HeaderText="Mã số thuế" />
        <asp:BoundField DataField="SOTAIKHOAN" HeaderText="Số tài khoản" />
        <asp:BoundField DataField="NGANHANG" HeaderText="Ngân hàng" />
        <asp:BoundField DataField="SDT" HeaderText="Số điện thoại" />
        <asp:BoundField DataField="EMAIL" HeaderText="Email" />
        <asp:BoundField DataField="FAX" HeaderText="Fax" />
        <asp:BoundField DataField="WEBSITE" HeaderText="Website" />
        <asp:TemplateField HeaderText="Tình trạng">
        <ItemTemplate>
        <asp:Label ID="lbtinhtrang" runat="server"></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Website">
        <ItemTemplate>
          <asp:HyperLink ID="hplink" runat="server" NavigateUrl='<%# Bind("WEBSITE") %>' Text='<%# Bind("WEBSITE") %>'></asp:HyperLink>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Chức năng">
        <ItemTemplate>
        <asp:LinkButton runat="server" ID="lbtnsua" CommandName="lbtnsua" CommandArgument='<%#Bind("MANCC") %>'><i class="icon-pencil bigger-130"></i></asp:LinkButton>
         <asp:LinkButton runat="server" ID="lbtnxoa" CommandName="lbtnxoa" CommandArgument='<%#Bind("MANCC") %>' OnClientClick="return confirm('Bạn có muỗn xóa không ?');"><i class="icon-trash bigger-130 red"></i></asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    </asp:GridView>
    </div>
</asp:Content>